<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
    <title>审核结果</title>
    <link rel="stylesheet" href="css/weui.min.css">
    <link rel="stylesheet" href="css/jquery-weui.css">
    <link rel="stylesheet" href="css/demos.css">
    <link rel="stylesheet" type="text/css" href="./js/swiper.min.css"/>
    <link rel="stylesheet" href="css/main.css">

</head>
<style>
    body {
        background: #fff;
    }

    .pay_img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        margin-right: 10px;
    }

    .pay_top {
        display: flex;
        align-items: center;
        padding: 20px;
        background: #fff;
    }


    .pay_btn {
        width: 300px;
        border-radius: 5px;
        background: #6670ff;
        text-align: center;
        color: #fff;
        font-size: 18px;
        margin: 20px auto 0;
        height: 40px;
        line-height: 40px;
    }

    .pay_group {
        margin: 10px 20px;
        padding: 10px;
        box-shadow: 0 0 3px #dcdcdc;
    }

    .pay_item {
        margin: 20px 0;
        display: flex;
        align-items: flex-end;
        color: #666;
        border-bottom: 1px solid #dcdcdc;
    }

    .pay_item input {
        border: 0;
        outline: none;
        flex: 1;
        height: 30px;
        font-size: 16px;
    }

    .pay_item span {
        display: inline-block;
        min-width: 80px;
        height: 30px;
        line-height: 30px;
    }

    .yhj {
        justify-content: space-between;
        border: 0;
    }

    input::-webkit-input-placeholder {
        color: #A9A9A9;
        font-size: 14px;
    }

    input::-moz-placeholder {
        /* Mozilla Firefox 19+ */
        color: #A9A9A9;
        font-size: 14px;
    }

    input:-moz-placeholder {
        /* Mozilla Firefox 4 to 18 */
        font-size: 14px;
        color: #A9A9A9;
    }

    input:-ms-input-placeholder {
        /* Internet Explorer 10-11 */
        font-size: 14px;
        color: #A9A9A9;
    }

    .moneyc {
        font-size: 18px;
    }

    .divdisable {
        pointer-events: none;
    }
</style>

<body ontouchstart>
<div class="topNav">
    <a href="javascript:window.history.go(-1)" ><img src="./images/xiangzuo.png" alt=""></a>
    <p>返回</p>
</div>
<div class="line"></div>
<div class="block"></div>
<div class="weui-msg">
    <div class="weui-msg__icon-area">


    </div>
    <div class="weui-msg__text-area">
        <h2 class="weui-msg__title cl-amin"></h2>
        <p class="weui-msg__desc"></p>
    </div>
    <div class="weui-msg__opr-area" >
        <p class="weui-btn-area">

        </p>
    </div>

</div>
</body>
<script src="js/jquery-2.1.4.js"></script>
<script src="js/jquery-weui.js"></script>
<script src="js/swipe.js"></script>
<script src="js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="wxJs/utils/storage.js"></script>
<script src="wxJs/utils/contain.js"></script>
<script>
    var userId = GetQueryString("userId")
    if (!userId) {
        window.history.back(-1);
    }
    $.post(getWeiContextPath() + "/wx/shop/queryShopByUid", {wxUserId: userId}, function (res) {
        if (res.isValid == 2) {   //驳回
            $('.weui-msg__icon-area').html('<i class="weui-icon-warn weui-icon_msg"></i>')
            $('.cl-amin').text("审核未通过")
            $('.weui-msg__desc').text(res.remarks)
            $('.weui-btn-area').html('<a href="javascript:;" class="weui-btn weui-btn_primary" onclick="toWrite('+res.shopId+')">再次申请</a>')
        } else if (res.isValid == 0) {    //待审核
            $('.weui-msg__icon-area').html('<i class="weui-icon-waiting weui-icon_msg"></i>')
            $('.cl-amin').text("正在审核中")
            $('.weui-msg__desc').text('请耐心等待审核结果')
        }
    })

    function toWrite(shopId) {
        window.location.href = "editShop.html?shopId="+shopId+"&userId="+userId;
    }

</script>
</html>